{  Statement: http://acmp.ru/?main=task&id_task=26
   Verdict: Accepted
}
uses
    SysUtils, Math;

const
    eps:double = 1e-6;

var
    a,b,c,x,y,z:longint;
    d:double;

begin
reset(input,'input.txt');
rewrite(output,'output.txt');
read(a,b,c,x,y,z);
d:=sqrt((x-a)*(x-a)+(y-b)*(y-b));
if (c + z >= d) and (c + d >= z) and (d + z >= c) then write('YES') else write('NO');
end.
